package com.ctgu.module.admin.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("e_email")
public class Email implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String address;

    private String postAddress;

    private Integer userId;

    private String title;

    private String content;

    private String text;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    /***
     *  1表示正常
     *  -1表示已删除
     */

    private Integer status;

    /***
        0：接收到的正常邮件
        1：接收到的垃圾邮件
        2：已发送的邮件
     ***/
    private Integer mark;

    private String file;


}
